package com.gitee.hermer.engine.jars.core.loader.event;

import com.gitee.hermer.boot.jee.commons.collection.StringCache;
import com.gitee.hermer.engine.jars.app.sdk.EngineAppClassLoader;
import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.gitee.hermer.engine.jars.core.event.EngineHandleEvent;

public class EngineAppDestroyEvent extends EngineHandleEvent{
	
	private EngineAppClassLoader appClassLoader;
	private String cacheKey;
	
	
	public EngineAppDestroyEvent(String project, String version,EngineAppClassLoader appClassLoader){
		this(new StringCache(project).append(EngineConstant.STR_SPLIT).append(version).toString(),appClassLoader);
		
	}
	

	public EngineAppDestroyEvent(String cacheKey,EngineAppClassLoader appClassLoader) {
		super(cacheKey);
		this.cacheKey = cacheKey;
		this.appClassLoader = appClassLoader;
	}
	
	public String getCacheKey() {
		return cacheKey;
	}
	public EngineAppClassLoader getAppClassLoader() {
		return appClassLoader;
	}
	
	public void setAppClassLoader(EngineAppClassLoader appClassLoader) {
		this.appClassLoader = appClassLoader;
	}
	
	

}
